<?
$masterid = $_GET['id'] or die("No Pinterest User Specified!");
$pins = file_get_contents("http://pinterest.com/$masterid");
$match = array(); 
preg_match('/<meta property="pinterestapp:following" content="(.*?)"/',$pins,$match);
$data['pinfollows'] = $match[1];
$new_string = ereg_replace("[^0-9]", "", $match[1] );
echo $new_string;
?>